package com.towa.ninemanmorris;

import java.util.Arrays;

public class GameStatusWrapper {
	private long id;
	private String gameName;
	private int player;
	private int redsOnBoard;
	private int bluesOnBoard;
	private int redsPlaced;
	private int bluesPlaced;
	private int[] redMarkers;
	private int[] blueMarkers;

	public GameStatusWrapper() {
		id = -1;
		player = 1;
		gameName = "Current";
		redsOnBoard = 0;
		bluesOnBoard = 0;
		redsPlaced = 0;
		bluesPlaced = 0;
		redMarkers = new int[9];
		blueMarkers = new int[9];
	}

	public GameStatusWrapper(long id, String gameName, int player, int redsOnBoard,
			int bluesOnBoard, int redsPlaced, int bluesPlaced,
			int[] redMarkers, int[] blueMarkers) {
		super();
		this.id = id;
		this.gameName = gameName;
		this.player = player;
		this.redsOnBoard = redsOnBoard;
		this.bluesOnBoard = bluesOnBoard;
		this.redsPlaced = redsPlaced;
		this.bluesPlaced = bluesPlaced;
		this.redMarkers = redMarkers;
		this.blueMarkers = blueMarkers;
	}

	public long getId(){
		return id;
	}
	
	public void setId(long id){
		this.id = id;
	}
	
	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public int getPlayer() {
		return player;
	}

	public void setPlayer(int player) {
		this.player = player;
	}

	public int getRedsOnBoard() {
		return redsOnBoard;
	}

	public void setRedsOnBoard(int redsOnBoard) {
		this.redsOnBoard = redsOnBoard;
	}

	public int getBluesOnBoard() {
		return bluesOnBoard;
	}

	public void setBluesOnBoard(int bluesOnBoard) {
		this.bluesOnBoard = bluesOnBoard;
	}

	public int getRedsPlaced() {
		return redsPlaced;
	}

	public void setRedsPlaced(int redsPlaced) {
		this.redsPlaced = redsPlaced;
	}

	public int getBluesPlaced() {
		return bluesPlaced;
	}

	public void setBluesPlaced(int bluesPlaced) {
		this.bluesPlaced = bluesPlaced;
	}

	public int[] getRedMarkers() {
		return redMarkers;
	}

	public void setRedMarkers(int[] redMarkers) {
		this.redMarkers = redMarkers;
	}

	public int[] getBlueMarkers() {
		return blueMarkers;
	}

	public void setBlueMarkers(int[] blueMarkers) {
		this.blueMarkers = blueMarkers;
	}

	@Override
	public String toString() {
		return "GameStatusWrapper [gameName=" + gameName + ", player=" + player
				+ ", redsOnBoard=" + redsOnBoard + ", bluesOnBoard="
				+ bluesOnBoard + ", redsPlaced=" + redsPlaced
				+ ", bluesPlaced=" + bluesPlaced + ", redMarkers="
				+ Arrays.toString(redMarkers) + ", blueMarkers="
				+ Arrays.toString(blueMarkers) + "]";
	}

}
